package com.lisen.module.system.login.ui.action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import com.lisen.common.base.ui.BaseAction;

public abstract class UserBaseAction extends BaseAction {
	protected Logger logger;

	public UserBaseAction() {
		logger = Logger.getLogger(getClass());
	}

	protected void writeResponse(HttpServletResponse response, String content)
			throws IOException {
		response.setCharacterEncoding("UTF-8");
		response.setContentType("text/html");
		response.setHeader("Cache-Control", "no-cache");
		PrintWriter out = response.getWriter();
		out.write(content);
		out.flush();
		out.close();
	}
}
